{extend name="public:base" /}
{block name="css"}
<link href="/static/laydate/theme/default/laydate.css">
{/block}
{block name="content"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-content">
                    <div class="row search-form">
                        <div class="col-sm-2 m-b-sm">
                            <div class="input-group">
                                <select name="status" class="form-control form-control-lg">
                                    <option value="0">请选择状态</option>
                                    <option value="1" {:input('payed_status') == 1 ? 'selected' : ''}>待审核</option>
                                    <option value="2" {:input('payed_status') == 2 ? 'selected' : ''}>审核成功</option>
                                    <option value="-1" {:input('payed_status') == -1 ? 'selected' : ''}>审核失败</option>
                                </select>
                            </div>
                        </div>
                        <button type="button" class="btn btn-primary btn-lg screen-btn">搜索</button>
                    </div>
                    <div class="table-responsive">
                        <table class="table table-striped">
                            <thead>
                            <tr>
                                <th>ID</th>
                                <th>车辆</th>
                                <th>金额</th>
                                <th>付款凭证</th>
                                <th>审核状态</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            {volist name="list" id="vo"}
                            <tr>
                                <td>{$vo.id}</td>
                                <td>{$vo.number} / {$vo.model}</td>
                                <td>{$vo.price}</td>
                                <td>
                                    {if $vo.payed_img}
                                    <div class="form-uploaded-img-box">
                                        <img class="form-uploaded-box-img" src="{$vo.payed_img}">
                                        <i class="form-uploaded-img-preview iconfont icon-yulan" onclick="previewImg(this, 'form-uploaded-img-preview')"></i>
                                    </div>
                                    {/if}
                                </td>
                                <td>{$vo.payed_status|doPayedStatus}</td>
                                <td class="project-actions">
                                    {if $vo.payed_status == 1 && $vo.payed_img}
                                    <a href="{:url(confirmPayedSuccess, ['id' => $vo.id])}" class="btn btn-white btn-sm ajax-operate"><i class="iconfont icon-success"></i> 付款成功 </a>
                                    <a href="{:url(confirmPayedFail, ['id' => $vo.id])}" class="btn btn-white btn-sm ajax-operate"><i class="iconfont icon-refuse"></i> 付款失败 </a>
                                    {/if}
                                </td>
                            </tr>
                            {/volist}
                            </tbody>
                        </table>
                        {if !empty($list)}{$list->render()}{/if}
                    </div>

                </div>
            </div>
        </div>
    </div>
</div>
{include file="public/cropper-img-mask" cropper_uploaded_img_ids="cropper_uploaded_img_ids" cropper_uploaded_img_paths="cropper_uploaded_img_paths" crop_preview_box="crop-preview-box" /}{include file="public/preview-img-mask" swiper-id="cropper-preview" /}
{/block}

{block name="js"}
<script src="/static/laydate/laydate.js"></script>
<script>
    laydate.render({
        elem: '#ID-laydate-range',
        range: ['#start_date', '#end_date']
    });
</script>
{/block}

